﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="VemTransporte.Views.UsuarioTransporte.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
<h2>
        Acesso ao vemtransporte
    </h2>
    <p>
        No VemTransporte você pode se conectar e vê a localização exata de seu transporte.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="False" 
            NavigateUrl="~/Views/UsuarioTransporte/Cadastro.aspx" Target="_self">Cadastre-se</asp:HyperLink> &nbsp;se você não tem uma conta.
    </p>    
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup"/>
            <div class="accountInfo">
                
                <fieldset class="login">
                    <legend>Informações da conta</legend>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="TextBoxEmail">E-Mail:</asp:Label>
                        <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="textEntry" 
                            MaxLength="10" ValidationGroup="LoginUserValidationGroup"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="TextBoxEmail" CssClass="field-validation-error" 
                            ErrorMessage="E-Mail está inválido!" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" 
                            AssociatedControlID="TextBoxPassword">Senha:</asp:Label>
                        <asp:TextBox ID="TextBoxPassword" runat="server" CssClass="passwordEntry" 
                            TextMode="Password" ValidationGroup="LoginUserValidationGroup"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="TextBoxPassword" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Senha é obrigatória." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:CheckBox ID="RememberMe" runat="server"/>
                        <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Manter logado</asp:Label>
                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Logar" ValidationGroup="LoginUserValidationGroup"/>
                </p>
            </div>
    </form>
</body>
</html>
